<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/7
 * Time: 22:56
 */

namespace app\common\validate;


use think\Validate;

class Adverts extends Validate
{
    protected  $rule = [
        'title|标题' => "require",
        'position|位置' =>"require",
        'maxLoadNum|最大加载次数' => "require",
        'href|链接' => "require",
         'author|登陆实效'=>"require"
    ];

    //添加基地场景验证
    public function sceneAdd(){
        return $this->only(['title','position','maxLoadNum','href']);
    }


}